package com.wodsy.phoenix.datadao.shopc.dao.impl;

import com.wodsy.phoenix.datadao.base.BaseHibernateDao;
import com.wodsy.phoenix.datadao.shopc.dao.FreightTempAreaDao;
import com.wodsy.phoenix.datadao.shopc.dao.PromiseDao;
import com.wodsy.phoenix.dataobject.shopc.model.FreightTempArea;
import com.wodsy.phoenix.dataobject.shopc.model.Promise;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

/**
 * Created by Huang on 2015/4/28.
 */
@Repository("promiseDao")
public class PromiseDaoImpl extends BaseHibernateDao<Promise,Integer> implements PromiseDao {

    @Autowired
    @Qualifier(value="shopc")
    @Override
    public void setSessionFactory(SessionFactory sessionFactory) {
        this.sessionFactory = sessionFactory;
    }

    @Override
    public Class<Promise> getModelClass() {
        return Promise.class;
    }
}
